/**
 * @version      BOSSCMS-Free
 * @trademark    BOSSCMS
 * @copyright    Copyright © by BOSSCMS-Free (https://www.bosscms.net/) 保留所有权利
 * @license      https://gitee.com/Greenpeas/BOSSCMS/license/ 和 https://www.bosscms.net/freelicense/
 * @link         https://www.bosscms.net/
 * @author       温州软界网络技术有限公司
**/
$(document).ready(function(e){
	$('input[name=type]').change(function(){
		type();
	});
	type();
	function type(){
		val = $('input[name=type]:checked').val();
		if(val==1){
			$('dl[image]').show();
		}else if(val==0){
			$('dl[image]').hide();
		}
	}
	$('table td[exchange]').each(function(){
		$.get($.mpf('link','link','exchange',{'id':$(this).attr('exchange')}),function(data){
			$('table td[exchange="'+data.id+'"]').html('<span color="'+data.color+'">'+data.msg+'</span>');
		},'json');
	});
});